<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="common/index::head">
</head>
<body th:replace="common/index::body">

</body>
<script type="text/javascript" src="static/js/cost_elements/index.js"></script>
<script type="text/javascript" th:inline="javascript">
	var object = [[${obj}]]
	var querySelectlist = [[${querySelectlist}]];
	layui.use(['form'],function() {
		var form = layui.form;
		$("#querySelect").html();
		for(let obj in querySelectlist){
			var html = '';
			html = html+"<script type='text/html' id='"+obj+"'>"
					+"<select lay-search>"
					+"<option value=''>请搜索或选择</option>";
			for(var i in querySelectlist[obj]){
				html = html+"<option value='"+querySelectlist[obj][i].label+"'>"+querySelectlist[obj][i].value+"</option>";
			}
			html = html+"<\/select><\/script>";
			$("#querySelect").append(html);
		}
		form.render();
	})
</script>
<script type="text/html" id="tableToolbar" th:inline="javascript">
	<div class="layui-inline" shiro:hasPermission="${'btn:'+obj.url+'_add'}">
		<button class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon">&#xe654;</i>新增</button>
	</div>
	<div class="layui-inline" shiro:hasPermission="${'btn:'+obj.url+'_edit'}">
		<button class="layui-btn layui-btn-sm" lay-event="upd"><i class="layui-icon">&#xe642;</i>修改</button>
	</div>
	<div class="layui-inline" shiro:hasPermission="${'btn:'+obj.url+'_delete'}">
		<button class="layui-btn layui-btn-sm" lay-event="delete"><i class="layui-icon">&#xe640;</i>删除</button>
	</div>
	<div class="layui-inline" shiro:hasPermission="${'btn:'+obj.url+'_disable'}">
		<button class="layui-btn layui-btn-sm" lay-event="disable"><i class="layui-icon">&#xe64d;</i>启|禁</button>
	</div>
	<div class="layui-inline" shiro:hasPermission="${'btn:'+obj.url+'_download'}">
		<button class="layui-btn layui-btn-sm" lay-event="download"><i class="layui-icon">&#xe601;</i>导出</button>
	</div>
	<button type="button" lay-event="find" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe615;</i>查询</button>
</script>
</html>